package vo

import "encoding/json"

type AddFriendMessage struct {
	From      int    `json:"from"`
	FromTick  string `json:"fromTick"`
	FromImage string `json:"fromImage"`
	Target    int    `json:"target"`
}

func (add *AddFriendMessage) MarshalBinary() ([]byte, error) {
	return json.Marshal(add)
}

func (add *AddFriendMessage) UnmarshalBinary(data []byte) error {
	return json.Unmarshal(data, add)
}
